
import 'dart:convert';

ResponseModel responseModelFromJson(String str)=>ResponseModel.formJson(json.decode(str));
String responseModelToJson(ResponseModel data) => json.encode(data.toJson());

class ResponseModel {
  var data;
  String? code;
  String? message;

  ResponseModel({String? code,String? message,var data}){
    this.data = data;
    this.code = code;
    this.message = message;
  }
  factory ResponseModel.formJson(Map<String, dynamic>json)=>ResponseModel(
      code:json["code"], message:json["message"],data: json["data"]);

  Map<String,dynamic> toJson()=>{
    "code": code,
    "message": message,
        "data": data,
      };
}
